//
//  WBOAuthViewController.swift
//  SilenceWeibo
//
//  Created by admin on 2017/7/11.
//  Copyright © 2017年 honliv. All rights reserved.
//

import UIKit

//通过 webView 加载新浪微博授权页面控制器
class WBOAuthViewController: UIViewController {
    fileprivate lazy var  webView = UIWebView()
    
    override func loadView(){
        view = webView
        view.backgroundColor = UIColor.white
        
        //设置导航栏
        title = "登录新浪微博"
        //导航栏按钮
        navigationItem.leftBarButtonItem = UIBarButtonItem(title: "返回", target: self, action: #selector(close), isBack: true)
    }

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    @objc fileprivate func close() {
        dismiss(animated: true, completion: nil)
    }

}
